package com.imooc.mymall.service;

import com.imooc.mymall.domain.common.PageResult;
import com.imooc.mymall.domain.common.PageQuery;
import com.imooc.mymall.domain.dto.UserDTO;
import com.imooc.mymall.domain.dto.UserQueryDTO;

import java.util.List;

/**
 * @Author: crowsjian
 * @Date: 2020/7/11 21:04
 */
public interface UserService {
    /*保存*/
    int save(UserDTO userDTO);
    /*更新*/
    int update(Long id,UserDTO userDTO);
    /*删除*/
    int delete(Long id);
    /*分页查询*/
    PageResult<List<UserDTO>> query(PageQuery<UserQueryDTO> pageQuery);
}
